﻿using System;
using System.ComponentModel.Composition;

namespace NColony.Syndication.Receiver.Contracts
{
    /// <summary>
    /// Base implementation for a feed item.
    /// </summary>
    [Export(typeof(ISyndicationFeedItem))]
    [PartCreationPolicy(CreationPolicy.NonShared)]
    public class BaseFeedItem : ISyndicationFeedItem
    {
        /// <summary>
        /// Gets or sets the title.
        /// </summary>
        /// <value>The title.</value>
        public string Title { get; set; }

        /// <summary>
        /// Gets or sets the publish date.
        /// </summary>
        /// <value>The publish date.</value>
        public DateTimeOffset PublishDate { get; set; }
    }
}
